﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ManagerPaperInfo.aspx.cs"
    Inherits="sysadmin_QuestionManager_ManagerPaperInfo" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>管理试卷</title>
    <link href="../../css/1/css/css.css" type="text/css" rel="stylesheet" />
</head>
<body class="bodymain">
    <form id="form1" runat="server">
        <table border="0" cellpadding="0" cellspacing="0" class="tree-titbg_right" width="100%">
            <tr>
                <td class="tree-titbg_left">
                    <asp:Label ID="lab_TitleInfo" runat="server" Text="管理试卷"></asp:Label></td>
            </tr>
        </table>
        <table border="0" cellpadding="0" cellspacing="0" class="tableList2" width="100%">
            <tr>
                <th>
                    <asp:Label ID="lab_PaperState" runat="server" Text="试卷状态"></asp:Label></th>
                <td>
                    <asp:DropDownList ID="dpdlst_PaperState" runat="server">
                        <asp:ListItem Value="-1">请选择</asp:ListItem>
                        <asp:ListItem Value="0">未生成</asp:ListItem>
                        <asp:ListItem Value="1">已生成</asp:ListItem>
                    </asp:DropDownList></td>
                <th>
                    <asp:Label ID="lab_PaperName" runat="server" Text="试卷名称"></asp:Label></th>
                <td colspan="3">
                    <asp:TextBox ID="txtPaperName" runat="server"></asp:TextBox>&nbsp;
                    <asp:Button ID="btnSearch" runat="server" CssClass="inputBotton2" Text=" 搜 索 " OnClick="btnSearch_Click" /></td>
            </tr>
        </table>
        <asp:GridView ID="gvPaperList" runat="server" AutoGenerateColumns="False" OnRowCommand="gvPaperList_RowCommand"
            OnRowDataBound="gvPaperList_RowDataBound" GridLines="None" BorderWidth="0px"
            CssClass="mainList" Width="100%">
            <Columns>
                <asp:BoundField DataField="PaperResearch_ID" HeaderText="试卷ID" Visible="False" />
                <asp:BoundField DataField="Index" HeaderText="试卷编号" />
                <asp:BoundField DataField="PaperResearch_Name" HeaderText="试卷名称" />
                <asp:BoundField DataField="PaperResearch_StartTime" HeaderText="开始时间" />
                <asp:BoundField DataField="PaperResearch_EndTime" HeaderText="结束时间" />
                <asp:BoundField DataField="PaperResearch_ShowState" HeaderText="是否启用" />
                <asp:BoundField DataField="PaperResearch_SeeState" HeaderText="是否允许前台查看调查结果" Visible="false" />
                <asp:BoundField DataField="PaperResearch_BuildState" HeaderText="试卷状态" />
                <asp:TemplateField HeaderText="操作">
                    <ItemTemplate>
                        <asp:LinkButton ID="ibtnEditor" runat="server" CommandName="myeditor" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "url") %>'>修改试卷基本信息</asp:LinkButton>
                        &nbsp;&nbsp;
                        <asp:LinkButton ID="ibtnPreview" runat="server" CommandName="mypreview" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "url") %>'>预览试卷</asp:LinkButton>
                        &nbsp;&nbsp;
                        <asp:LinkButton ID="ibtnDelete" runat="server" CommandArgument='<%#Eval("PaperResearch_ID") %>'
                            CommandName="mydelete" OnClientClick="return confirm('您确认删除吗?')">删除</asp:LinkButton>
                        &nbsp;&nbsp;
                        
                        <asp:LinkButton ID="btn_Statistical" CommandName="btn_Statistical" runat="server" CommandArgument='<%#Eval("PaperResearch_ID") %>'
                            >查看调查结果</asp:LinkButton>
                            &nbsp;&nbsp;
                        <asp:LinkButton ID="btn_Out" CommandName="btn_Out" runat="server" CommandArgument='<%#Eval("PaperResearch_ID") %>' Visible="False">导出Word</asp:LinkButton>
                        &nbsp;&nbsp;
                        <asp:LinkButton ID="btn_SetUser" CommandName="btn_SetUser" runat="server" CommandArgument='<%#Eval("PaperResearch_ID") %>'
                            Visible="false">设置参加人员</asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <EmptyDataTemplate>
                <%=GetLanageValueByKey("msg_Page_Nodate", PowerCreator.LMS.Language.LanagetItemType.Page)%>
            </EmptyDataTemplate>
        </asp:GridView>
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td>
                    <webdiyer:AspNetPager ID="AspNetPager1" runat="server" HorizontalAlign="Center" OnPageChanged="AspNetPager1_PageChanged"
                        ShowCustomInfoSection="Left" Width="100%" meta:resourceKey="AspNetPager1" Style="font-size: 14px"
                        InputBoxStyle="width:19px" CustomInfoHTML="当前页  <font color='red'><b>%CurrentPageIndex%</b></font> 总页数  %PageCount%  当前条数 %StartRecordIndex%-%EndRecordIndex%"
                        FirstPageText="首页" LastPageText="末页" NextPageText="下一页" PrevPageText="上一页">
                    </webdiyer:AspNetPager>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
